#!/bin/bash

if [ "$1" = "ssh" ]
then
   if [ "$2" = "on" ]
   then
     /opt/hsc/bin/HSCDoCmd /etc/rc.d/init.d/hmcsshd force_start
   else
     /opt/hsc/bin/HSCDoCmd /etc/rc.d/init.d/hmcsshd force_stop
   fi
fi

if [ "$1" = "rexec" ]
then
   if [ "$2" = "on" ]
   then
      /opt/hsc/bin/HSCDoCmd /sbin/chkconfig rexec on
   else
      /opt/hsc/bin/HSCDoCmd /sbin/chkconfig rexec off
   fi
fi
exit $?
